fix "Mismatching new/free or malloc/delete" found by CodeQL. (#649)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Sun, 8 Nov 2020 17:51:41 +0000 (10:51 -0700)
committerGitHub <noreply@github.com>
Sun, 8 Nov 2020 17:51:41 +0000 (10:51 -0700)
ozi.cc

diff --git a/ozi.cc b/ozi.cc
index 87f7e036d9900ba9b316cff2210f13480aa382e3..63d030f9761f4626b2bc44160f0142193b08fd10 100644 (file)
--- a/ozi.cc
+++ b/ozi.cc
@@ -931,7 +931,7 @@ ozi_waypt_pr(const Waypoint* wpt)
   *stream << qSetRealNumberPrecision(0) << alt << ",6,0,17\r\n";
 
   if (faked_fsdata) {
-    xfree(fs);
+    delete fs;
   }
 }